﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class NPc2:NPC
    {
        private string b;
        public string B
        {
            get { return this.b; }
            set { this.b = value; }
        }
        public NPc2(string name, NPCType type, string b) : base(name, type)
        {
            this.b = b;
        }
        public override void Speak()
        {
            Console.WriteLine("{0}:出没{1}", this.Name, this.b);  
        }
    }
}
